;;; init-lua.el --- Configuration for lua mode -*- lexical-binding: t -*-
;;; Commentary:
;;; Code:

(add-hook 'lua-mode-hook #'lsp)
(with-eval-after-load 'lua-mode
  (require 'lsp-lua)

  (setq lsp-lua-runtime-version "Lua 5.4")
  ;; (setq lua-default-application "luajit")
  (setq lua-indent-level 2))

(provide 'init-lua)
;;; init-lua.el ends here
